package com.ming.sportdemo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import javax.validation.constraints.NotBlank;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("util")
public class Util {
    @TableId(type = IdType.AUTO)
    private int utilId;
    private String utilName;
    private String utilType;
    @NotBlank(message = "价格不能为空")
    private double utilPrice;
    private String utilView;
    private int utilNumber;

    public String getUtilType() {
        return utilType;
    }

    public void setUtilType(String utilType) {
        this.utilType = utilType;
    }

    public int getUtilNumber() {
        return utilNumber;
    }

    public void setUtilNumber(int utilNumber) {
        this.utilNumber = utilNumber;
    }

    public String getUtilView() {
        return utilView;
    }

    public void setUtilView(String utilView) {
        this.utilView = utilView;
    }

    public int getUtilId() {
        return utilId;
    }

    public void setUtilId(int utilId) {
        this.utilId = utilId;
    }

    public String getUtilName() {
        return utilName;
    }

    public void setUtilName(String utilName) {
        this.utilName = utilName;
    }

    public double getUtilPrice() {
        return utilPrice;
    }

    public void setUtilPrice(double utilPrice) {
        this.utilPrice = utilPrice;
    }

    @Override
    public String toString() {
        return "Util{" +
                "utilId=" + utilId +
                ", utilName='" + utilName + '\'' +
                ", utilPrice=" + utilPrice +
                ", utilView='" + utilView + '\'' +
                ", utilNumber=" + utilNumber +
                '}';
    }
}
